import { Boolean, Code, Cover, Desc, Entity, Jsonb, PrimaryUuid, Remark, Text, Title } from "@sker/core";

@Entity({
    name: 'core_element'
})
export class CoreElement {
    @PrimaryUuid({
        primaryKeyConstraintName: "PK_CORE_ELEMENT_ID"
    })
    id: string;

    @Code({
        comment: '唯一名称',
        unique: true
    })
    name: string;

    @Title({
        comment: '名称'
    })
    title: string;

    @Desc({
        comment: '简介',
        default: ''
    })
    desc: string;

    @Cover({ comment: '预览', nullable: true })
    preview: string;

    @Remark({
        comment: '备注',
        default: ''
    })
    mark: string;
}